package org.common.utils.geometry;

public class Line 
{
	/** 左上角，右下角，两点行成一条线*/
	private Point leftTop , rightBottom;

	public Line(Point leftTop, Point rightBottom) 
	{
		this.leftTop =leftTop;
		this.rightBottom = rightBottom;
	}
	
	public Line(float  x1 , float  y1 , float  x2 , float  y2) 
	{
		this.leftTop = new Point(x1 , y1);
		this.rightBottom = new Point(x2 , y2);
	}

	public Point getLeftTop() {		return leftTop;	}
	public Point getRightBottom() {		return rightBottom;	}
}
